package cn.itsource.ymcc.media;

import cn.itsource.result.JSONResult;
import cn.itsource.ymcc.domain.MediaFile;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "service-media",fallbackFactory = MediaFileClientFallbackFactory.class)
public interface MediaFileClient {

    /**
     * 根据课程id查询媒体视屏集合
     * @param courseId
     * @return
     */
    @GetMapping("/mediaFile/listByCourseId/{courseId}")//路径一定要写全
    JSONResult listByCourseId(@PathVariable("courseId") Long courseId);

}
